<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-for</title>
    <script src="vue.js"></script>
</head>
<body>
   <div id='app'>
       <p>{{ message }}</p>
        <button v-on:click="re">反转信息</button>
   </div> 
   <script>
        const app = new Vue({
            el:'#app',
            data:{
                message: 'hello Vue'
            },
            methods:{
                re:function(){
                    alert('this is click 事件')
                }
                
            }

        })

   </script>
</body>
</html>